.class Lcom/netease/newsreader/activity/DetailPushPage$7;
.super Ljava/lang/Object;
.source "DetailPushPage.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/DetailPushPage;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/DetailPushPage;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/DetailPushPage;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    .line 3295
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 10
    .parameter "v"

    .prologue
    const/16 v8, 0x8

    const/4 v7, 0x0

    .line 3300
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPushPage;->access$59(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/PopupWindow;

    move-result-object v5

    invoke-virtual {v5}, Landroid/widget/PopupWindow;->dismiss()V

    .line 3301
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPushPage;->access$78(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/Button;

    move-result-object v5

    invoke-virtual {v5, v8}, Landroid/widget/Button;->setVisibility(I)V

    .line 3312
    const/4 v4, 0x0

    .line 3313
    .local v4, replyCountNum:Ljava/lang/String;
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPushPage;->access$2(Lcom/netease/newsreader/activity/DetailPushPage;)Ljava/util/HashMap;

    move-result-object v5

    if-eqz v5, :cond_0

    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPushPage;->access$2(Lcom/netease/newsreader/activity/DetailPushPage;)Ljava/util/HashMap;

    move-result-object v5

    const-string v6, "replyCount"

    invoke-virtual {v5, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v4

    .line 3315
    :cond_0
    if-eqz v4, :cond_2

    const-string v5, "0"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_2

    .line 3316
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    const-string v6, "\u76ee\u524d\u6ca1\u6709\u8ddf\u8d34"

    invoke-static {v5, v6, v7}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v5

    invoke-virtual {v5}, Landroid/widget/Toast;->show()V

    .line 3361
    :cond_1
    :goto_0
    return-void

    .line 3322
    :cond_2
    const-string v5, "\u8ddf\u8d34"

    iget-object v6, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v6}, Lcom/netease/newsreader/activity/DetailPushPage;->access$7(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/Button;

    move-result-object v6

    invoke-virtual {v6}, Landroid/widget/Button;->getText()Ljava/lang/CharSequence;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_1

    .line 3326
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPushPage;->access$39(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/LinearLayout;

    move-result-object v5

    invoke-virtual {v5, v7}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 3327
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPushPage;->access$38(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/LinearLayout;

    move-result-object v5

    invoke-virtual {v5, v8}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 3328
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPushPage;->access$40(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/view/inputmethod/InputMethodManager;

    move-result-object v5

    if-eqz v5, :cond_3

    .line 3329
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPushPage;->access$40(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/view/inputmethod/InputMethodManager;

    move-result-object v5

    iget-object v6, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v6}, Lcom/netease/newsreader/activity/DetailPushPage;->access$41(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/EditText;

    move-result-object v6

    invoke-virtual {v6}, Landroid/widget/EditText;->getWindowToken()Landroid/os/IBinder;

    move-result-object v6

    invoke-virtual {v5, v6, v7}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    .line 3332
    :cond_3
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    const/4 v6, 0x1

    invoke-static {v5, v6}, Lcom/netease/newsreader/activity/DetailPushPage;->access$79(Lcom/netease/newsreader/activity/DetailPushPage;Z)V

    .line 3339
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    .line 3340
    .local v1, j:Lorg/json/JSONObject;
    const-string v3, ""

    .line 3342
    .local v3, replyBoard:Ljava/lang/String;
    :try_start_0
    const-string v5, "p"

    const-string v6, ""

    invoke-virtual {v1, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 3343
    const-string v5, "postid"

    iget-object v6, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v6}, Lcom/netease/newsreader/activity/DetailPushPage;->access$1(Lcom/netease/newsreader/activity/DetailPushPage;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v1, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 3345
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPushPage;->access$2(Lcom/netease/newsreader/activity/DetailPushPage;)Ljava/util/HashMap;

    move-result-object v5

    const-string v6, "replyBoard"

    invoke-virtual {v5, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 3346
    .local v2, o:Ljava/lang/Object;
    if-nez v2, :cond_4

    const-string v3, ""

    .line 3347
    :goto_1
    const-string v5, "replyBoard"

    invoke-virtual {v1, v5, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 3349
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-virtual {v1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6}, Lcom/netease/newsreader/activity/DetailPushPage;->access$80(Lcom/netease/newsreader/activity/DetailPushPage;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 3354
    .end local v2           #o:Ljava/lang/Object;
    :goto_2
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPushPage;->access$81(Lcom/netease/newsreader/activity/DetailPushPage;)Lcom/netease/newsreader/util/CollectUtil;

    move-result-object v5

    if-eqz v5, :cond_1

    .line 3355
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    iget-object v6, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v6}, Lcom/netease/newsreader/activity/DetailPushPage;->access$81(Lcom/netease/newsreader/activity/DetailPushPage;)Lcom/netease/newsreader/util/CollectUtil;

    move-result-object v6

    iget-object v7, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v7}, Lcom/netease/newsreader/activity/DetailPushPage;->access$82(Lcom/netease/newsreader/activity/DetailPushPage;)Ljava/lang/String;

    move-result-object v7

    const-string v8, "1"

    const/4 v9, 0x3

    invoke-virtual {v6, v7, v8, v9}, Lcom/netease/newsreader/util/CollectUtil;->getAlreadyCollect(Ljava/lang/String;Ljava/lang/String;I)I

    move-result v6

    invoke-static {v5, v6}, Lcom/netease/newsreader/activity/DetailPushPage;->access$83(Lcom/netease/newsreader/activity/DetailPushPage;I)V

    .line 3356
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPushPage;->access$84(Lcom/netease/newsreader/activity/DetailPushPage;)I

    move-result v5

    const/4 v6, -0x1

    if-eq v5, v6, :cond_5

    .line 3357
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPushPage;->access$85(Lcom/netease/newsreader/activity/DetailPushPage;)Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v5

    iget-object v6, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v6}, Lcom/netease/newsreader/activity/DetailPushPage;->access$86(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/content/Context;

    move-result-object v6

    iget-object v7, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v7}, Lcom/netease/newsreader/activity/DetailPushPage;->access$87(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/ImageButton;

    move-result-object v7

    const v8, 0x7f020018

    invoke-virtual {v5, v6, v7, v8}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/content/Context;Landroid/widget/ImageView;I)V

    goto/16 :goto_0

    .line 3346
    .restart local v2       #o:Ljava/lang/Object;
    :cond_4
    :try_start_1
    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-result-object v3

    goto :goto_1

    .line 3350
    .end local v2           #o:Ljava/lang/Object;
    :catch_0
    move-exception v0

    .line 3351
    .local v0, e:Ljava/lang/Exception;
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_2

    .line 3359
    .end local v0           #e:Ljava/lang/Exception;
    :cond_5
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPushPage;->access$85(Lcom/netease/newsreader/activity/DetailPushPage;)Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v5

    iget-object v6, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v6}, Lcom/netease/newsreader/activity/DetailPushPage;->access$86(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/content/Context;

    move-result-object v6

    iget-object v7, p0, Lcom/netease/newsreader/activity/DetailPushPage$7;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v7}, Lcom/netease/newsreader/activity/DetailPushPage;->access$87(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/ImageButton;

    move-result-object v7

    const v8, 0x7f020015

    invoke-virtual {v5, v6, v7, v8}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/content/Context;Landroid/widget/ImageView;I)V

    goto/16 :goto_0
.end method
